/*
 * @Description: In User Settings Edit
 * @Author: your name
 * @Date: 2019-09-10 14:21:48
 * @LastEditTime: 2019-10-21 16:42:38
 * @LastEditors: Please set LastEditors
 */

import axios from "./ajax";
//发送验证码
export function sms(data) {
  return axios({
    method: 'post',
    url: "/sms",
    data
  })
}
// 注册接口
export function register(data) {
  return axios({
    method: 'post',
    url: "/register",
    data
  })
}
// 密码登录
export function pwd_login(data) {
  return axios({
    method: 'post',
    url: "/pwd_login",
    data
  })
}
// 忘记密码
export function forget_user_pwd(data) {
  return axios({
    method: 'post',
    url: "/forget_user_pwd",
    data
  })
}
// 判断是否注册
export function register_judge(data) {
  return axios({
    method: 'post',
    url: "/register_judge",
    data
  })
}
// 部门列表
export function query_ent_dept_list(data) {
  return axios({
    method: 'post',
    url: "/query_ent_dept_list",
    data
  })
}
// 产品列表
export function query_category_info_list(data) {
  return axios({
    method: 'post',
    url: "/query_category_info_list",
    data
  })
}
// 获取产品详细信息
export function query_prod_info_list(data) {
  return axios({
    method: 'post',
    url: "/query_prod_info_list",
    data
  })
}
// 查询结构人员
export function query_dept_staff_list(data) {
  return axios({
    method: 'post',
    url: "/query_dept_staff_list",
    data
  })
}
// 合同每日报表
export function get_con_daily(data) {
  return axios({
    method: 'post',
    url: "/get_con_daily",   //每天都上班
    // url: "/get_con_daily_work_day",    //工作日
    data
  })
}
// 判断是否登录
export function check_login(data) {
  return axios({
    method: 'post',
    url: "/check_login",
    data
  })
}
// 退出登录
export function logout(data) {
  return axios({
    method: 'post',
    url: "/logout",
    data
  })
}
// 看历史
export function get_con_daily_history(data) {
  return axios({
    method: 'post',
    url: "/get_con_daily_history",
    data
  })
}
// 合同月报
export function get_con_month(data) {
  return axios({
    method: 'post',
    url: "/get_con_month",
    data
  })
}
// 合同月报看历史
export function get_con_month_history(data) {
  return axios({
    method: 'post',
    url: "/get_con_month_history",
    data
  })
}
// 合同年报
export function get_con_year(data) {
  return axios({
    method: 'post',
    url: "/get_con_year",
    data
  })
}
// 发票日报
export function get_inv_daily(data) {
  return axios({
    method: 'post',
    url: "/get_inv_daily",
    data
  })
}
// 发票日报顾过去
export function get_inv_daily_history(data) {
  return axios({
    method: 'post',
    url: "/get_inv_daily_history",
    data
  })
}
// 发票月报
export function get_inv_month(data) {
  return axios({
    method: 'post',
    url: "/get_inv_month",
    data
  })
}
// 发票月报顾过去
export function get_inv_month_history(data) {
  return axios({
    method: 'post',
    url: "/get_inv_month_history",
    data
  })
}
// 发票年报
export function get_inv_year(data) {
  return axios({
    method: 'post',
    url: "/get_inv_year",
    data
  })
}
// 到款日报
export function get_rec_daily(data) {
  return axios({
    method: 'post',
    url: "/get_rec_daily",
    data
  })
}
// 到款日报顾过去
export function get_rec_daily_history(data) {
  return axios({
    method: 'post',
    url: "/get_rec_daily_history",
    data
  })
}
// 到款月报
export function get_rec_month(data) {
  return axios({
    method: 'post',
    url: "/get_rec_month",
    data
  })
}
// 到款月报顾过去
export function get_rec_month_history(data) {
  return axios({
    method: 'post',
    url: "/get_rec_month_history",
    data
  })
}
// 到款年报
export function get_rec_year(data) {
  return axios({
    method: 'post',
    url: "/get_rec_year",
    data
  })
}
// 获取我的基础信息
export function get_my_info(data) {
  return axios({
    method: 'post',
    url: "/get_my_info",
    data
  })
}
// 获取我的基础信息
export function update_user_info(data) {
  return axios({
    method: 'post',
    url: "/update_user_info",
    data
  })
}
// 个人邮箱认证
export function send_check_user_email(data) {
  return axios({
    method: 'post',
    url: "/send_check_user_email",
    data
  })
}
// 修改密码
export function alter_user_pwd(data) {
  return axios({
    method: 'post',
    url: "/alter_user_pwd",
    data
  })
}
// 获取用户相关的企业列表
export function query_user_ent_list(data) {
  return axios({
    method: 'post',
    url: "/query_user_ent_list",
    data
  })
}
// 切换企业
export function toggle_user_ent(data) {
  return axios({
    method: 'post',
    url: "/toggle_user_ent",
    data
  })
}
// 切换企业
export function get_cs_info(data) {
  return axios({
    method: 'post',
    url: "/get_cs_info",
    data
  })
}
// 切换企业
export function add_my_advise(data) {
  return axios({
    method: 'post',
    url: "/add_my_advise",
    data
  })
}
// 获取权限接口
export function get_rel_list(data) {
  return axios({
    method: 'post',
    url: "/get_rel_list",
    data
  })
}